package com.sailing.core.demo.collection;

import java.util.ArrayList;
import java.util.List;

public class CollectionClear {
	public static void main(String[] args) {
		List<Integer> list = new ArrayList<Integer>();
		list.add(1);
		list.add(2);
		int num = list.get(1);
		list.clear();
		System.out.println(num);
		System.out.println("list.size is :"+list.size());
	}
}
